package com.huaxia.day8.t1;

public class TestCalculator {
    public static void main(String[] args) {
        Calculator calculator = new CalculatorImpl();

//        System.out.println(calculator.add(10,5));
//        System.out.println(calculator.sub(10,5));
        System.out.println(calculator.multiplication(1000000000,5));
//        System.out.println(calculator.division(10,5));
            System.out.println("-------------");
        Calculator1 calculator1 = new Calculator1Impl();

        System.out.println(calculator1.add(10,5));
        System.out.println(calculator1.sub(10,5));
        System.out.println(calculator1.multiplication(1000000000,5));
        System.out.println(calculator1.division(10,0));
    }
}
